// 入口文件
import React from 'react';

export default class Counter extends React.Component{
    render(){
        //console.log(this.props);
        const {count,increase,count1,decrease} =this.props; 
        return (
           <div>
            Count: {count}
            <br/>
            Count1:{count1}
            <br/>
            <button onClick={increase}>count++</button>
            <button onClick={decrease}>count--</button>
           {/* <button onClick={fetchList}>获取数据</button> */}
            <br/>
            {/*{JSON.stringify(list)} */}
            {/*{list.map((item,index)=>{
                //console.log(item);
                return <li>
                    <h3>{item.name}</h3>
                    <img src={item.img} width="100" height="100"/>
                    <p>{item.text}</p>
                    <p>{item.time}</p>
                    <p>{item.stars.string}</p>
                </li>
            })} */}
           </div>
        )
    }
}